import axios from "axios";

axios.defaults.baseURL = "http://localhost:9090";
// 封装get请求
export function doGet(url, params) {
    return axios.get(url, {
        params: params
    });
}

// 封装post请求
export function doPost(url, data) {
    return axios.post(url, data);
}